using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;

namespace Blog.Repository;


/// <summary>
/// 角色权限
///</summary>
[SugarTable("ad_role_permission")]
public class RolePermissionEntity: EntityAdd
{

    /// <summary>
    /// 主键Id
    ///</summary>
    [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
    public long Id { get; set; }
    
    /// <summary>
    /// 角色Id
    ///</summary>
    [SugarColumn(ColumnName = "RoleId")]
    public long RoleId { get; set; }
    
    /// <summary>
    /// 权限Id
    ///</summary>
    [SugarColumn(ColumnName = "PermissionId")]
    public long PermissionId { get; set; }
    }
